package com.snowfield.lb47.lbconfig.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.snowfield.lb47.lbconfig.mapper.FrontProxyHeaderMapper;
import com.snowfield.lb47.lbconfig.domain.FrontProxyHeader;
import com.snowfield.lb47.lbconfig.service.IFrontProxyHeaderService;

/**
 * 代理HeaderService业务层处理
 * 
 * @author snowfield
 * @date 2024-04-09
 */
@Service
public class FrontProxyHeaderServiceImpl implements IFrontProxyHeaderService 
{
    @Autowired
    private FrontProxyHeaderMapper frontProxyHeaderMapper;

    /**
     * 查询代理Header
     * 
     * @param id 代理Header主键
     * @return 代理Header
     */
    @Override
    public FrontProxyHeader selectFrontProxyHeaderById(Long id)
    {
        return frontProxyHeaderMapper.selectFrontProxyHeaderById(id);
    }

    /**
     * 查询代理Header列表
     * 
     * @param frontProxyHeader 代理Header
     * @return 代理Header
     */
    @Override
    public List<FrontProxyHeader> selectFrontProxyHeaderList(FrontProxyHeader frontProxyHeader)
    {
        return frontProxyHeaderMapper.selectFrontProxyHeaderList(frontProxyHeader);
    }

    /**
     * 新增代理Header
     * 
     * @param frontProxyHeader 代理Header
     * @return 结果
     */
    @Override
    public int insertFrontProxyHeader(FrontProxyHeader frontProxyHeader)
    {
        frontProxyHeader.setCreateTime(DateUtils.getNowDate());
        return frontProxyHeaderMapper.insertFrontProxyHeader(frontProxyHeader);
    }

    /**
     * 修改代理Header
     * 
     * @param frontProxyHeader 代理Header
     * @return 结果
     */
    @Override
    public int updateFrontProxyHeader(FrontProxyHeader frontProxyHeader)
    {
        frontProxyHeader.setUpdateTime(DateUtils.getNowDate());
        return frontProxyHeaderMapper.updateFrontProxyHeader(frontProxyHeader);
    }

    /**
     * 批量删除代理Header
     * 
     * @param ids 需要删除的代理Header主键
     * @return 结果
     */
    @Override
    public int deleteFrontProxyHeaderByIds(Long[] ids)
    {
        return frontProxyHeaderMapper.deleteFrontProxyHeaderByIds(ids);
    }

    /**
     * 删除代理Header信息
     * 
     * @param id 代理Header主键
     * @return 结果
     */
    @Override
    public int deleteFrontProxyHeaderById(Long id)
    {
        return frontProxyHeaderMapper.deleteFrontProxyHeaderById(id);
    }
}
